package com.qq.xqj.service.impl;

import com.qq.xqj.mapper.Car_mapper;
import com.qq.xqj.modle.Car_info;
import com.qq.xqj.service.car_service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Car_serviceImpl implements car_service {
    @Autowired
    Car_mapper car_mapper;
    @Override
    public List<Car_info> getCarInfo() {
        return car_mapper.getCarInfo();
    }

    @Override
    public List<Car_info> selectCarByKey(Car_info car_info) {
        return car_mapper.selectCarByKey(car_info);
    }

    @Override
    public Car_info queryCarById(int id) {
        return car_mapper.queryCarById(id);
    }

//    @Override
//    public int queryTotal(String brand, String type) {
//        return car_mapper.queryTotal(brand,type);
//    }
}
